<html>
<head><meta charset="utf-8"><title>Thir trait · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Thir.20trait.html">Thir trait</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="226210013"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Thir%20trait/near/226210013" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Thir.20trait.html#226210013">(Feb 12 2021 at 23:21)</a>:</h4>
<p>Am I right in assuming that the references to the <code>Thir</code> trait in <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/struct.Expr.html"><code>thir::Expr</code></a> should say <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/trait.Mirror.html"><code>Mirror</code></a>?</p>
<p>Also is <code>Mirror</code> a pun on MIR?</p>



<a name="226210457"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Thir%20trait/near/226210457" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Thir.20trait.html#226210457">(Feb 12 2021 at 23:27)</a>:</h4>
<p>Also this is declared as a <code>crate struct Expr&lt;'tcx&gt; { ... }</code> in the source but shows up as <code>pub(crate) struct Expr&lt;'tcx&gt; ...</code> in rustdoc, is <code>crate</code> as a visibility modifier deprecated/unstable? I've never seen it mentioned in the docs.</p>



<a name="226210553"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Thir%20trait/near/226210553" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cjgillot <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Thir.20trait.html#226210553">(Feb 12 2021 at 23:28)</a>:</h4>
<p><code>crate</code> is a feature-gated shorthand for <code>pub(crate)</code>.</p>



<a name="226210623"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Thir%20trait/near/226210623" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mario Carneiro <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Thir.20trait.html#226210623">(Feb 12 2021 at 23:29)</a>:</h4>
<p>ah, just found <a href="https://github.com/rust-lang/rust/issues/53120">#53120</a></p>



<a name="226214619"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Thir%20trait/near/226214619" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Thir.20trait.html#226214619">(Feb 13 2021 at 00:21)</a>:</h4>
<p>Since <a href="https://github.com/rust-lang/rust/pull/77820">https://github.com/rust-lang/rust/pull/77820</a> rustdoc normalizes visibility modifiers</p>



<a name="226214674"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Thir%20trait/near/226214674" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Thir.20trait.html#226214674">(Feb 13 2021 at 00:22)</a>:</h4>
<p>So if you do <code>pub(a::b::super::super)</code> it will show <code>pub(self)</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>